package com.ruoyi.project.kkad.goodsad.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.Date;

/**
 * 商品广告对象 goods_ad
 *
 * @author shixiangwen
 * @date 2021-08-06
 */
public class GoodsAd extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * null
     */
    private Long id;

    /**
     * 名称
     */
    @Excel(name = "名称")
    private String name;

    /**
     * 介绍
     */
    @Excel(name = "介绍")
    private String description;

    /**
     * 链接
     */
    @Excel(name = "链接")
    private String link;

    /**
     * 发布状态
     */
    @Excel(name = "发布状态")
    private Integer status;

    /**
     * 权重
     */
    @Excel(name = "权重")
    private Long weight;

    /**
     * 图标
     */
    @Excel(name = "图标")
    private String img;

    /**
     * 关联标签
     */
    @Excel(name = "关联标签")
    private String tags;

    private String topTag;
    private String showTags;
    private String provider;

    /**
     * 创建时间
     */
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getDescription() {
        return description;
    }

    public void setLink(String link) {
        this.link = link;
    }

    public String getLink() {
        return link;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getStatus() {
        return status;
    }

    public void setWeight(Long weight) {
        this.weight = weight;
    }

    public Long getWeight() {
        return weight;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public void setTags(String tags) {
        this.tags = tags;
    }

    public String getTags() {
        return tags;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public String getTopTag() {
        return topTag;
    }

    public void setTopTag(String topTag) {
        this.topTag = topTag;
    }

    public String getShowTags() {
        return showTags;
    }

    public void setShowTags(String showTags) {
        this.showTags = showTags;
    }

    public String getProvider() {
        return provider;
    }

    public void setProvider(String provider) {
        this.provider = provider;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("description", getDescription())
                .append("link", getLink())
                .append("status", getStatus())
                .append("weight", getWeight())
                .append("img", getImg())
                .append("tags", getTags())
                .append("createdTime", getCreatedTime())
                .toString();
    }
}
